package com.example.epic.service.impl;

import com.example.epic.dao.ControlLevelDao;
import com.example.epic.service.ControlLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class ControlLevelServiceImpl implements ControlLevelService {

    @Autowired
    ControlLevelDao controlLevelDao;

    @Override
    public void updateControlLevel(Integer levelStatus) {
        controlLevelDao.updateControlLevel(levelStatus);
    }

    @Override
    public Integer getControlLevel() {
        return controlLevelDao.getControlLevel();
    }
}
